<?php
declare(strict_types=1);

namespace App\Common\Extend\Ai;

use App\Common\Extend\Ai\Model\DeepSeek;
use App\Sys;

class Ai
{
    /**
     * @param array $data
     * @param callable $callback
     * @return void
     */
    public function chat(array $data, callable $callback): void
    {
        Sys::container(DeepSeek::class)->chat($data['message'] ?? '', $callback);
    }
}